<?php
/**
 * Created by PhpStorm.
 * User: zd
 * Date: 2018/12/10
 * Time: 10:57
 */

namespace app\api\validate;


class WordParameter extends BaseValidate
{
    protected $rule=[
        'id'=>'isPositiveInt',
        'content'=>'require',
        'keyword'=>'require|length:1,8',
        'c_id'=>'isPositiveInt',
        'w_id'=>'isPositiveInt',
    ];

    protected $message=[
        'id'=>'ID必须为整数',
        'content'=>'话术类容不能为空',
        'keyword'=>'关键字不能为空',
        'c_id'=>'分类ID必须为正整数',
        'w_id'=>'用户id必须为正整数'
    ];

}